﻿namespace NuGetCop.MSBuild.Tasks.Configuration
{
    using System;
    using System.Xml.Serialization;
    using NuGetCop.MSBuild.Tasks.Configuration.Schema;

    [Serializable]
    [XmlRoot("rule", Namespace = SchemaSpecification.Namespace)]
    public sealed class NuGetCopRuleSettings
    {
        [XmlAttribute("packageId")]
        public string PackageId { get; set; }

        [XmlAttribute("version")]
        public string Version { get; set; }

        [XmlAttribute("targetFramework")]
        public string TargetFramework { get; set; }

        [XmlAttribute("isDevelopmentDependency")]
        public bool IsDevelopmentDependency { get; set; }
    }
}
